package cool.mtc.minghe.service.mapper.sys.permission;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cool.mtc.minghe.data.entity.sys.permission.PermissionDO;
import cool.mtc.minghe.data.model.sys.permission.dto.PermissionDTO;
import cool.mtc.minghe.data.model.sys.permission.dto.PermissionListDTO;
import cool.mtc.minghe.data.model.sys.permission.query.PermissionQuery;
import org.apache.ibatis.annotations.Param;

/**
 * @author 明河
 */
public interface PermissionMapper extends BaseMapper<PermissionDO> {

    Page<PermissionListDTO> pageList(@Param("page") Page<PermissionListDTO> page, @Param("query") PermissionQuery query);

    PermissionDTO getById(@Param("id") Long id);
}
